package com.example.design.patterns.冰河.行为模式.命令模式;

import com.example.design.patterns.冰河.行为模式.命令模式.concreteCommand.CommandImpl;
import com.example.design.patterns.冰河.行为模式.命令模式.invoker.Invoker;
import com.example.design.patterns.冰河.行为模式.命令模式.receiver.Receiver;

public class Test {
    public static void main(String[] args) {
        Receiver receiver = new Receiver();
        CommandImpl command = new CommandImpl(receiver);
        Invoker invoker = new Invoker();
        invoker.setCommand(command);
        invoker.execute();
    }

}
